package com.lysj.admin.common.merchant.feign;

import com.lysj.admin.common.merchant.domain.ComDeskVo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.math.BigDecimal;
import java.util.Map;

/**
 * @ Author ：drj.
 * @ Date  ：Created in 10:34 2019/3/22
 * @ Description:
 **/

public interface DeskServiceFeign {

    //下单改变餐桌状态
    @PostMapping("/merchant/change_desk_status")
    boolean changeDeskStatus(@RequestParam(value = "deskId") String deskId,
                           @RequestParam(value = "status") Integer status);

    //用户付完款,清空用餐人数,用户id,餐桌状态变为空闲
    @PostMapping("/merchant/init_desk")
    boolean initDesk(@RequestParam(value = "deskId") String deskId);


    //获取所有餐桌(id,name)
    @GetMapping("/merchante/get_all_desk_name")
    Map<String, String> getAllDeskName();

    //获取门店对应的茶座费
    @GetMapping("/merchant/get_store_tea_charge")
    BigDecimal getStoreTeaCharge(@RequestParam(value = "storeId") String storeId);
}
